//
//  LookjianliController.m
//  Ten
//
//  Created by anfuer on 2018/11/16.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "LookjianliController.h"
#import "LookjianliCell1.h"
#import "LookjianliCell2.h"
#import "LookjianliCell3.h"
#import "LookjianliCell4.h"

@interface LookjianliController ()

@end

@implementation LookjianliController
- (IBAction)backBtna:(UIButton *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

#pragma mark 返回分组数
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 4;
}

#pragma mark 返回每组行数
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return  1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
{
    if (indexPath.section==0) {
        LookjianliCell1*cell=[LookjianliCell1 CellWithTableView:tableView];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
        return cell;
    }else if (indexPath.section==1||indexPath.section==2||indexPath.section==3)
    {
        LookjianliCell2*cell=[LookjianliCell2 CellWithTableView:tableView];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
        return cell;
    }
    
    return nil;
}
#pragma mark 设置分组头高度
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 0;
}


#pragma mark 设置尾部说明内容高度
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    return 5;
}

#pragma mark 设置每行高度
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    if (indexPath.section==0) {
        return  [LookjianliCell1 FSCellHeightForTableView:tableView indexPath:indexPath cacheKey:@"LookjianliCell1" cellContentViewWidth:0 bottomOffset:20];
    }else
    {

         return  560;
      
    }
    return 110;
}
#pragma mark 点击事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{
    
}
@end
